package model

import (
	"time"
)

type User struct {
	Id int
	Identity string
	Name string
	Password string
	Email string

	NewVolume int64 `xorm:"new_volume"`
	TotalVolume int64 `xorm:"total_volume"`
	
	CreatdAt time.Time `xorm:"created_at"`
	UpdatedAt time.Time `xorm:"updated_at"`
	DeletedAt time.Time `xorm:"deleted_at"`
}

// 必须提供这个去找到正确的表名,区分大小写
func (u User) TableName() string {
	// table name in db
	return "user"
}